#!/bin/sh

# Commit murder against Wine

GPATH=$HOME/scripts/games

killw=$(find $GPATH | \
cut -b 26- | \
sed 1d | \
dmenu -p "Which game:" -i -fn "xos4 Terminus:size=10" -nb '#282828' -nf '#ebdbb2' -sb '#458588' -sf '#282828')

if [ -z "$killw" ]; then
exit
elif [ "$killw" = "Overwatch" ]; then
WINEPREFIX=$HOME/Wine/Games/Overwatch wineserver -k
elif [ "$killw" = "gta-sa" -o "gta-vc" -o "samp" ]; then
WINEPREFIX=$HOME/Wine/Games/gta-sa wineserver -k 
elif [ "$killw" = "GTA-IV" ]; then
WINEPREFIX=$HOME/Wine/Games/GTA-IV wineserver -k
elif [ "$killw" = "GTA-III" ]; then
WINEPREFIX=$HOME/.wine wineserver -k
else
notify-send 'Wine' 'Game not found'
fi



